import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Home from '@/views/Home.vue'
import News from '@/views/News.vue'
import About from '@/views/About.vue'
import Detail from '@/views/Detail.vue'
import RuleScenarios from '@/views/RuleScenarios.vue'
import RuleTest from '@/views/RuleTest.vue'
import BusinessModel from '@/views/BusinessModel.vue'
import RuleManagement from '@/views/RuleManagement.vue'
import constList from '@/views/ConstantList.vue'
import ConstList from '@/views/ConstantList.vue'
import Empty from '@/views/Empty.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'empty',
      component: Empty,
    },
    {
      path: '/ruleScenarios',
      name: 'ruleScenarios',
      component: RuleScenarios,
    },
    {
      path: '/businessModel',
      name: 'businessModel',
      component: BusinessModel,
    },
    {
      path: '/ruleManagement',
      name: 'ruleManagement',
      component: RuleManagement,
    },
    {
      path: '/constList',
      name: 'constList',
      component: ConstList,
    },
    {
      path: '/ruleTest',
      name: 'ruleTest',
      component: RuleTest,
    },
  ],
})

export default router
